package com.euond.permission.entities;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.euond.common.core.entities.BaseEditEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * Created by user on 2018/1/6.
 */
@Getter
@Setter
@TableName(value = "sys_data_privilege_dtl")
public class DataPrivilegeDtl extends BaseEditEntity {

    /**
     * 数据权限ID
     */
    @NotNull
    private Long privilegeId;

    /**d1
     * 资源ID
     */
    @NotNull
    private Long resourceId;

    /**
     * 资源名
     */
    @TableField(exist = false)
    private String resourceName;

    /**
     * 应用表名
     */
    @NotNull
    private String tableName;

    /**
     * 应用表字段名
     */
    @NotNull
    private String columnName;

    /**
     * 状态
     */
    @NotNull
    private Integer status;
}
